//
//  LKDayInforDetailBottomCell.m
//  YLHelper
//
//  Created by she1323 on 2018/4/19.
//  Copyright © 2018年 she1323. All rights reserved.
//

#import "LKDayInforDetailBottomCell.h"

@implementation LKDayInforDetailBottomCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self setUpTextview];
    // Initialization code
}
-(void)setUpTextview{
//    self.textView = [[YYTextView alloc] initWithFrame:CGRectMake(0, 0, WIDTH - 28, self.bgview.bounds.size.height)];
//    _textView.textVerticalAlignment  =  YYTextVerticalAlignmentTop;
//    _textView.userInteractionEnabled = NO;
//    [self.bgview addSubview:self.textView];
//    NSMutableAttributedString *contentText = [NSMutableAttributedString new];
//    [contentText appendAttributedString:[[NSMutableAttributedString alloc] initWithString:@"银来基金济南分公司两周年庆典，展“旺未来济南素有“天下泉城”的美誉文化" attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:16],NSForegroundColorAttributeName:COLOR_HEX(0x010101)}]];
//    [contentText appendAttributedString:[[NSMutableAttributedString alloc] initWithString:@"\n\n" attributes:nil]];
//     UIImage *image = [UIImage imageNamed:@"banner"];
//    YYAnimatedImageView *imageView = [[YYAnimatedImageView alloc] initWithImage:image];
//        imageView.frame = CGRectMake(0, 0,_textView.width, image.size.height);
//    NSMutableAttributedString * attachText = [NSMutableAttributedString attachmentStringWithContent:imageView contentMode:UIViewContentModeScaleAspectFill attachmentSize:imageView.size alignToFont:[UIFont systemFontOfSize:16] alignment:YYTextVerticalAlignmentCenter];
//    [contentText appendAttributedString:attachText];
//    [contentText appendAttributedString:[[NSMutableAttributedString alloc] initWithString:@"\n\n\n" attributes:nil]];
//    [contentText appendAttributedString:[[NSMutableAttributedString alloc] initWithString:@"底蕴深厚地理位置优越，北连首都经济圈，南接长三角经济圈。银来基金济南分公司两周年庆典，展“旺未来济南素有“天下泉城”的美誉文化底蕴深厚。 地理位置优越，北连首都经济圈，南接长三角经济圈。银来基金济南分公司。" attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:16],NSForegroundColorAttributeName:COLOR_HEX(0x010101)}]];
//
//    self.textView.attributedText = contentText;
//    //计算 string 的高度
//    CGSize attSize = [contentText boundingRectWithSize:CGSizeMake(WIDTH - 28, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading context:nil].size;

}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
